package com.study.security.core.validate.code.processor;

import org.springframework.web.context.request.ServletWebRequest;

/**
 *
 * 验证码处理器，封装不同的校验逻辑
 *
 * @author LiYongKui
 * @version 1.0
 * @date 2021/4/1 11:09
 */
public interface ValidateCodeProcessor {

    /**
     * 创建验证码
     * @param request
     * @throws Exception
     */
    void create(ServletWebRequest request) throws Exception;

    /**
     * 校验验证码
     *
     * @param request
     * @throws Exception
     */
    void validate(ServletWebRequest request);

}
